import instance from "../http";

export const getAllRoleApi = () => instance({//获取所有角色
  method:'get',
  url:'/roles/all',
})

export const createRoleApi = (param: any) => instance({//角色添加
  method:'post',
  url:'/roles/create',
  data:param
})

export const modifyRoleApi = (param: any) => instance({//角色修改
  method:'post',
  url:'/roles/modify',
  data:param
})

export const delRolerApi = (param: any) => instance({//角色删除
  method:'get',
  url:'/roles/delete',
  params: param
})
